﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;


namespace ProjetIntegrationMobilite
{
    public class UserListResponse
    {
        [XmlArrayItem("users")]
        public List<CompactUserModel> user = new List<CompactUserModel>();

        public class CompactUserModel
        {
            [XmlAttribute()]
            public String name;
            [XmlAttribute()]
            public String fullname;
            [XmlAttribute()]
            public String url;

         public CompactUserModel() { }
         public CompactUserModel(User u)
            {
               
                this.name = u.name;
                this.fullname = u.fullName;
                this.url = u.url;
            }           
        }

    }
}
